package com.czmh.etc.onlinepubsys.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * 资讯分类传递参数
 * Created by eric on 2021-06-23.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CmsContentCategoryParam {
    @ApiModelProperty(value = "资讯分类ID, 编辑接口必传")
    private Long id;
    @NotEmpty
    @ApiModelProperty(value = "资讯分类名称",required = true)
    private String name;
    @Min(value = 0)
    @ApiModelProperty(value = "排序字段")
    private Integer sort;
    @ApiModelProperty(value = "是否进行显示")
    private Integer showStatus;
    @NotEmpty
    @ApiModelProperty(value = "资讯分类logo")
    private String icon;
}
